<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="zh">
<head th:replace="registrar :: head('教授界面')">
    <title>Messages : Create</title>
</head>
<body>
<div>
    <nav th:fragment="nav(index)" class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">大学课程管理系统</a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li th:class="${index}==0?'active':''"><a href="/professor/courseOffering">制定课程计划表</a></li>
                    <li th:class="${index}==1?'active':''"><a href="/professor/modifyOffering">修改课程计划表</a></li>
                    <li th:class="${index}==2?'active':''"><a href="/professor/checkStudent">查看选课名单</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a th:text="${session.user.account}"></a></li>
                    <li><a href="/logout">注销</a></li>
                </ul>
            </div>
        </div>
    </nav>
</div>


</body>
</html>